import {BasicColumn} from "/@/components/Table";

//列表数据
export const columns: BasicColumn[] = [
  {
    title: '签约商户',
    align: "center",
    dataIndex: 'businessId_dictText'
  },
  {
    title: '服务公司',
    align: "center",
    dataIndex: 'companyId_dictText'
  },
  {
    title: '开票类目',
    align: "center",
    dataIndex: 'categoryText'
  },
  {
    title: '开票金额',
    align: "center",
    dataIndex: 'amount',
    customRender:({text}) =>{
      return !text ? "0.00" : text.toFixed(2);
    },
  },
  {
    title: '开票类型',
    align: "center",
    dataIndex: 'type',
    slots: { customRender: 'typeSlot' },
  },
  {
    title: '收件类型',
    align: "center",
    dataIndex: 'receivedType',
    slots: { customRender: 'receivedTypeSlot' },
  },
  {
    title: '申请时间',
    align: "center",
    sorter: true,
    dataIndex: 'createTime'
  },
  {
    title: '提交时间',
    align: "center",
    sorter: true,
    dataIndex: 'submitTime',
    customRender:({text}) =>{
      return !text ? "-" : text;
    },
  },
  {
    title: '审核时间',
    align: "center",
    sorter: true,
    dataIndex: 'checkTime',
    customRender:({text}) =>{
      return !text ? "-" : text;
    },
  },
  {
    title: '驳回理由',
    align: "center",
    dataIndex: 'rejectReason',
    customRender:({text}) =>{
      return !text ? "-" : text;
    },
  },
  {
    title: '完成时间',
    align: "center",
    sorter: true,
    dataIndex: 'finishTime',
    customRender:({text}) =>{
      return !text ? "-" : text;
    },
  },
];
